import './index.scss'
import { microCreateMinis } from '../../minis'
import Tinymce from '@/components/Tinymce'

export default {
  name: 'richTextArea',
  mixins: [microCreateMinis],
  components: {
    Tinymce
  },
  data() {
    return {
      tabActive: 0,
      key: 0,
      formData: {
        text: '富文本内容',
        marginTop: '0', // 上边距
        marginBottom:'0', // 下边距
        space:20,// 框体高度
      },
      commonCheckFieldRules: 'checkData'
    }
  },
  computed: {
  },
  methods: {
    checkData() {
      let is = true
      if (!this.formData.text) {
        is = false
        this.$message.error('请添加富文本内容')
      }
      this.myCheckResult(is);
    },
  }
}
